{%extends '../tpl/admin-base.html'%}
{%block body%}
<div class="main">
    {%include '../tpl/aside-nav.html'%}
    <div class="aside-content">
        {%if comment%}
        <table class="article-table">
            <tr>
                <th>序号</th>
                <th>邮箱</th>
                <th>日期</th>
                <th>评论文章</th>
                <th>来源IP</th>
                <th>操作</th>
            </tr>
            {%for k in comment%}
            <tr>
                <td>{{loop.index}}</td>
                <td>{{k.email}}</td>
                <td>{{k.addTime}}</td>
                <td><a target="_blank" href="/article/{{k.articleId}}">{{k.articleTitle}}</a></td>
                <td>{%if k.ip%}{{k.ip}}{%else%}未知{%endif%}</td>
                <td><a href="javascript:;" class="js-delete" data-url="/delete/comment/{{k._id}}">删除</a>
                    <a href="javascript:;" class="js-check" data-url="/getComment/{{k._id}}" data-action="/responseComment/{{k._id}}">查看</a>
                </td>
            </tr>
            {%endfor%}
        </table>
        {%else%}
        暂无数据
        {%endif%}

        {%include '../tpl/upage.html'%}
    </div>
</div>
{%endblock%}